/* Calendar viewing css */
ul.calendar-month-list, ul.calendar-year-list
{
    list-style: none;
    margin-bottom: 1em;
    margin-right: 3em;
}

ul.calendar-month-list
{
    float:left;
}

ul.calendar-year-list
{
    float:right;
}

ul.calendar-month-list li, ul.calendar-year-list li
{
    display:inline;
    margin-right: 3px;
}

ul.calendar-month-list li.month-sel, ul.calendar-year-list li.year-sel
{
    font-size: 1.5em;
    font-weight: bold;
}

table.calendar-table
{
    width: 100%;
}

.calendar-table th
{
    background-color: #EEEEEE;
    font-weight: bold;
    border: 1px solid #AAAAAA;
    border-top: 2px solid #8CACBB;
    text-align: left;
    height: 35px;
    width: 14%;
    vertical-align: top;
}

.calendar-table td.calendar-today
{
    background-color: #EEEEEE;
    border: 1px solid #AAAAAA;
}

.calendar-table td
{
    height: 100px;
    border: 1px solid #CCCCCC;
    vertical-align: top;
    padding: 0;
}

a.calendar-event-CalEvent,
a.calendar-event-CalHoliday,
div.calendar-event-emptyslot,
div.calendar-event-CalOvertime
{
    display: block;
    margin: 0;
    height: 1.25em;
    margin-bottom: 1px;
    color: #333333;
    padding: 0 4px;
    position: relative;
    z-index:24;
}

a.event-start
{
    border-left: 4px solid #666;
}

a.event-continue
{
    padding-left: 8px;
}

a.calendar-event-CalEvent
{
    background-color: #afcfde;
}

a.calendar-event-CalEvent:hover
{
    background-color: #cfeffe;
}

a.calendar-event-CalHoliday
{
    background-color: #badecf;
}

a.calendar-event-CalHoliday:hover
{
    background-color: #dafeef;
}

a.calendar-event-CalEvent span.calev_info
{
    border:1px solid #afcfde;
}

a.calendar-event-CalHoliday span.calev_info
{
    border:1px solid #badecf;
}

h2.calev_info
{

}

div.calendar-event-CalOvertime
{
    background-color: #ee9988;
}

div.calendar-event-CalOvertime:hover
{
    background-color: #ffb9a8;
}

div.calendar-event-CalOvertime a:link,
div.calendar-event-CalOvertime a:active,
div.calendar-event-CalOvertime a:visited,
div.calendar-event-CalOvertime a:hover
{
    color: #333;
}

div.calendar-dayno
{
    float: right;
    color: #666;
    margin: 3px 3px 0 0;
}

span.calendar-event-time
{
    font-size: 0.85em;
    font-weight: bold;
}

span.calendar-event-title
{
    font-size: 1em;
    overflow: hidden;
    display: block;
    height: 1.5em;
}

//Tooltip 
a.calev_link, div.calev_link
{
    position:relative; /*this is the key*/
    display: block;
    z-index:24;
    text-decoration:none;
}

a.calev_link:link, a.calev_link:active, a.calev_link:visited, .calev_link:hover
{
    color: #333333 !important;
    text-decoration: none;
}

.calev_link:hover
{
    z-index:25;
}

.calev_link .calev_info
{
    display: none;
}

.calev_link:hover .calev_info
{
    /*the span will display just on :hover state*/
    display:block;
    position:absolute;
    top: 25px;
    width: 195px;
    padding:4px;
    color: #333;
    background-color:#f6f6f6;
}

.calev_info h2
{
    margin-top:0;
    font-size: 1.2em;
    margin-bottom: 3px;
    padding: 3px;
}

.calev_info h3
{
    padding: 0px;
    margin: 0px;
}

.calev_info ul
{
    padding-top: 0px;
    margin-top: 0px;
}

.calev_info li
{
    margin-top:0;
    margin-bottom:0;
}

span.CalHoliday-tooltip
{
    border:1px solid #9abeaf;
}

span.CalHoliday-tooltip h2
{
    border-bottom: 2px solid #9abeaf;
}

span.CalEvent-tooltip
{
    border:1px solid #8fafbe;
}

span.CalEvent-tooltip h2
{
    border-bottom: 2px solid #8fafbe;
}

span.overtimes-tooltip
{
    border:1px solid #ce7766;
}

span.overtimes-tooltip h2
{
    border-bottom: 2px solid #ce7766;
}
